$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$width: 82.292vw;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;
    padding-top: 3vw;
    .bg {
      overflow: hidden;

      img {
        width: 100%;
        transform: scale(1.1);
        transition: all 600ms;
        object-fit: cover;
      }
    }

    .text {
      width: $width;
      left: calc((100% - 82.292vw) / 2);
      position: absolute;
      top: 60%;
      transform: translateY(-50%);

      .t {
        color: #FFF;
        font-size: $fontSize_90;
        font-weight: 600;
      }

      .t2 {
        color: #E11B00;
        font-size: $fontSize_24;
        font-weight: 500;
      }
    }

    &:hover {
      .bg {
        img {
          transform: scale(1);
        }
      }
    }
  }

  .section1 {
    width: $width;
    margin: 8vw auto;

    .t {
      display: flex;
      align-items: center;
      font-size: $fontSize_50;
      font-weight: 600;
      &::before {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background: #F90D1B;
        margin-right: 10px;
      }
    }
    .content{
      position: relative;
      padding-top: 8vw;
      .pic{
        position: absolute;
        right: 0;
        top:0;
        width: 60%;
        overflow: hidden;
        img{
          width: 100%;
          transition: all 600ms;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
        }
      }
      .des{
        width: 65%;
        background-color: #FAFAFA;
        padding: 6vw 2vw;
        .txt{
          width: 55%;
          color: #666;
          font-size: $fontSize_22;
          line-height: 1.6;
        }
      }
    }
  }

  .section2{
    width: $width;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 8vw auto;
    .l{
      width: 50%;
      .t1{
        color: #E11B00;
        font-size: $fontSize_28;
      }
      .t2{
        font-size: $fontSize_50;
        font-weight: 600;
        line-height: 1.3;
        margin-top: 3vw;
      }
    }
    .r{
      width: 45%;
      .t1{
        font-size: $fontSize_18;
      }
      .des{
        p{
          font-size: $fontSize_22;
          margin-top: 2vw;
        }
      }
      .name{
        display: flex;
        align-items: center;
        margin-top: 4vw;
        p{
          font-size: $fontSize_24;
          margin-right: 2vw;
        }
      }
    }
  }

  .section3{
    background-color: #F7F7F7;
    padding: 2vw 0 4vw 0;
    .content{
      width: $width;
      margin: 0 auto;
      .t{
        font-size: $fontSize_50;
        font-weight: 600;
      }
      .items{
        margin: 4vw 0 0 0;
        display: flex;
        justify-content: space-around;
        gap: 10px;
        .item{
          position: relative;
          .icon{
            img{
              max-width: 100%;
              object-fit: contain;
            }
          }
          .pt{
            position: absolute;
            left: 50%;
            top: 50%;
            font-size: $fontSize_18;
            font-weight: 200;
            width: 100%;
            text-align: center;
            color:rgba(0, 0, 0, 0.7);
            transform: translate(-50%,-50%);
          }
          .num{
            position: absolute;
            left: -10px;
            top:5px;
            font-size: $fontSize_24;
            font-family: 'Montserrat-Regular';
            font-weight: 600;
            color: #E11B00;
          }
        }
      }
    }
  }

  .section4{
    width: $width;
    margin: 6vw auto;
    .t{
      font-size: $fontSize_50;
      font-weight: 600;
    }
    .three{
      display: flex;
      justify-content: space-between;
      margin-top: 2vw;
      .item{
        width: 30%;
        .num{
          color: #E11B00;
          font-size: $fontSize_24;
          font-weight: 600;
          font-family: 'Montserrat-Regular';
        }
        .line{
          height: 2px;
          width: 100%;
          background-color: rgba(28, 28, 28, 1);
          margin: 1.5vw 0;
        }
        .des{
          font-size: $fontSize_22;
          color:rgba(28, 28, 28, 1);
          line-height: 1.6;
        }
      }
    }
    .pic{
      margin: 4vw 0;
      overflow: hidden;
      img{
        width: 100%;
        object-fit:cover;
        transition: all 600ms;
      }
      &:hover{
        img{
          transform: scale(1.05);
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      padding-top: 0;
      .bg{
        img{
          min-height: 200px;
        }
      }
      .text{
        .t{
          font-size: 24px;
        }
        .t2{
          font-size: 18px;
        }
      }
    }
    .section1{
      width: 90%;
      margin: 30px auto;
      .t{
        font-size: 24px;
      }
      .content{
        padding-top: 0;
        .pic{
          position: static;
          width: 100%;
        }
        .des{
          width: 90%;
          padding: 15px 5%;
          margin: 15px 0;
          .txt{
             width: 100%;
            font-size: 16px;
          }
        }
      }
    }
    .section2{
      width: 90%;
      margin: 20px auto 40px auto;
      flex-direction: column;
      .l{
        width: 100%;
        .t1{
          font-size: 18px;
        }
        .t2{
          font-size: 24px;
          line-height: 1.5;
        }
      }
      .r{
        width: 100%;
        margin-top: 20px;
        .t1{
          font-size: 16px;
        }
        .des{
           p{
            font-size: 16px;
            margin-top: 15px;
           }
        }
        .name{
          p{
            font-size: 18px;
            margin-right: 20px;
          }
        }
      }
    }
    .section3{
      padding: 20px 0 40px 0;
      .content{
        width: 90%;
        margin: 0 auto;
        .t{
          font-size: 24px;
        }
        .items{
          flex-wrap: wrap;
          gap: 0;
          justify-content: space-between;
          .item{
            width: 48%;
            margin-bottom: 20px;
            .num{
              font-size: 18px;
              left: 0;
            }
            .pt{
              font-size: 16px;
            }
          }
        }
      }
    }
    .section4{
      width: 90%;
      margin: 30px auto 100px auto;
      .t{
        font-size: 24px;
      }
      .three{
        flex-direction: column;
        .item{
          width: 100%;
          margin-bottom: 20px;
          .num{
            font-size: 18px;
          }
          .line{
            height: 1px;
            margin: 15px 0;
          }
          .des{
            font-size: 16px;
          }
        }
      }
      .pic{
        img{
          min-height: 200px;
        }
      }
    }
  }
}